import request from '@/utils/request'
//获取快递数据
export function apiGetExpressList() {
    return request.get('/express/list')
}

/**
 * 添加站点
 * @param name   站点名字
 * @returns 
 */
export function apiSetAddExpress(param) {
    return request.post('/express/add', {
        name: param.name
    })
}

/**
 * 修改站点名称
 * @param id 站点的ID
 * @param name  站点名称
 * @returns 
 */
export function apiSetUpExpressName(param) {
    return request.post(`/express/edit?id=${param.id}`, {
        name: param.name
    })
}

/**
 * 删除站点
 * @param id  删除站点
 * @returns 
 */
export function apiSetDeleExpress(param) {
    return request.post(`/express/delete?id=${param.id}`)
}